﻿<%@ Page Title="Login &raquo; ResourceBlender" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Login.aspx.cs" Inherits="Login" %>

<asp:Content ID="contentHead" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="contentMain" ContentPlaceHolderID="cntMain" Runat="Server">
    <h1>Log In</h1>
    <div class="niceform">
        <p>You must log in before proceeding.</p>
        <asp:Login ID="lgLogin" runat="server" onauthenticate="lgLogin_Authenticate" 
            DestinationPageUrl="~/Default.aspx" 
            FailureText="Username or password incorrect." RememberMeSet="True" 
            VisibleWhenLoggedIn="False">
            <LayoutTemplate>
                <div class="formrow block">
                    <asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName">User Name</asp:Label>
                    <asp:TextBox ID="UserName" runat="server"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" 
                        ControlToValidate="UserName" ErrorMessage="User Name is required" 
                        ToolTip="User Name is required" ValidationGroup="lgLogin">*</asp:RequiredFieldValidator>
                </div>
                <div class="formrow block">
                    <asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password">Password</asp:Label>
                    <asp:TextBox ID="Password" runat="server" TextMode="Password"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" 
                        ControlToValidate="Password" ErrorMessage="Password is required" 
                        ToolTip="Password is required" ValidationGroup="lgLogin">*</asp:RequiredFieldValidator>
                </div>
                <div class="formrow block checks">
                    <asp:CheckBox ID="RememberMe" runat="server" Checked="True" 
                        Text="Remember me" />
                </div>
                <div class="formrow block error" title="Login &amp;raqro; ResourceBlender">
                    <asp:Literal ID="FailureText" runat="server" EnableViewState="False"></asp:Literal>
                </div>
                <div class="formrow block actions">
                    <asp:Button ID="LoginButton" runat="server" CommandName="Login" Text="Log In" 
                        ValidationGroup="lgLogin" />
                </div>
            </LayoutTemplate>
        </asp:Login>
    </div>
</asp:Content>

